//
//  Common.swift
//  Sina
//
//  Created by 王亮龙1 on 16/5/19.
//  Copyright © 2016年 lianglong. All rights reserved.
/*
 
 Optional({
 "access_token" = "2.00u4lm7GgCjnBC57786973ce3e9yZC";
 "expires_in" = 157679999;
 "remind_in" = 157679999;
 uid = 5892603622;
 })
 
 */

import UIKit


let ScreenWidth = UIScreen.mainScreen().bounds.width
let ScreenHeight = UIScreen.mainScreen().bounds.height

let client_id = "1858893218"
let client_secret = "4b0fb3d465d9e77e07df85008f92b2a6"
let redirect_uri = "http://www.weibo.com/u/5892603622/home?wvr=5"
let grant_type = "authorization_code"

//跳转到欢迎界面的通知名
let SwitchRootViewController = "SwitchRootViewController"


//网络错误提示信息
let APPErrorTip = "网路似乎有点不太给力..."

//时间格式化工具
let sharedDF = NSDateFormatter()



//屏幕的宽, 高
let UIScreenHeight = UIScreen.mainScreen().bounds.size.height
let UIScreenWidth = UIScreen.mainScreen().bounds.size.width


func randomColor() -> UIColor {
    let red = CGFloat(random() % 256) / 255.0
    let blue = CGFloat(random() % 256) / 255.0
    let green = CGFloat(random() % 256) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}
        